<?
$smarty=new Smarty();
if(!ANTIHACK) die("ANTIHACK...");
include("../includes/language_vi.php");
 if(isset($_POST['savepost']))
{
	$data=array(
		"content1" => $_POST["content1"],
		"content2" => $_POST["content2"],
	);
	$ret = update($data,"other","code='openweb'");
	if($ret)
		$smarty->assign("msg","Cập nhật thành công");
	else
		$smarty->assign("msg","Có lỗi!");
		$r=$data;
}
else
{
	$query = query("select * from other where code='openweb'");
	$r=fetch($query);
}

$smarty->assign("data",$r);
$smarty->display("openweb.htm");
?>